<?php
//订单管理
if(!defined('IN_T')){
   die('hacking attempt');
}

class order extends module_order{
	protected function index(){
		parent::index();
		//提取所有商家，供前台检索使用
		global $Base,$Db,$tp;
		$sql = "select id,name from ".$Base->table('company')." where p_id=0 order by id desc";
		$cps = $Db->query($sql);
		$tp->assign('cps',$cps);
	}
}
new order();
?>